--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit d7d5b6e52341d99861cafc33a094ddd70a052064
Parents : f555203
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-23T04:30:39-05:00
refactor(index.html): remove service worker registration script to streamline frontend code
Changes
Diff
diff --git a/meshchatx/src/frontend/index.html b/meshchatx/src/frontend/index.html
index d073558d..9236768d 100644
--- a/meshchatx/src/frontend/index.html
+++ b/meshchatx/src/frontend/index.html
@@ -34,25 +34,5 @@
</noscript>
<div id="app"></div>
<script type="module" src="main.js"></script>
- <script>
- // install service worker
- if ("serviceWorker" in navigator) {
- navigator.serviceWorker.register("/service-worker.js").catch((error) => {
- // Silently handle SSL certificate errors and other registration failures
- // This is common in development with self-signed certificates
- const errorMessage = error.message || "";
- const errorName = error.name || "";
- if (
- errorName === "SecurityError" ||
- errorMessage.includes("SSL certificate") ||
- errorMessage.includes("certificate")
- ) {
- return;
- }
- // Log other errors for debugging but don't throw
- console.debug("Service worker registration failed:", error);
- });
- }
- </script>
</body>
</html>
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────